/*!
    \file  readme.txt
    \brief description of the ADC analog watchdog example
*/

/*
    Copyright (C) 2017 GigaDevice

    2017-02-10, V1.0.0, firmware for GD32F30x
*/

  This demo is based on the GD32F30x-EVAL board, it shows how to
use the ADC analog watchdog to guard continuously an ADC channel.
The ADC is configured in continuous mode, the ADC1 clock is configured
to 27MHz. PA3 is chosen as analog input pin.


  Change the VR4 on the GD32F30x-EVAL board, measure TP7 pad on the 
GD32F30X-EVAL board, when the channel3 converted value is over the 
programmed analog watchdog high threshold (value 0x0A00) or below 
the analog watchdog low threshold(value 0x0400), an WDE interrupt 
will occur, and LED2 will be on. When the channel3 converted value is
in safe range(among 0x0400 and 0x0A00), the LED2 will be off.

  The analog input pin should be configured to AIN mode. 
  
  JP20, JP30 must be fitted.